import Router from 'koa-router';
import TestController from "../controller/testController";

const router = new Router();
// 设置路由前缀
router.prefix('/api/test');

router
  .get('/get', TestController.getTest)
  .post('/post', TestController.postTest)
  .get('/page', TestController.pageTest)
  .get('/cheartoken', TestController.pageTest)

export default router;